home *** CD-ROM | disk | FTP | other *** search
/ Champak 138 / Volume 138 Aug 19 2011 - Damaged.iso / Games / shore_siege.swf / scripts / DefineSprite_62_Effect_Smoke / frame_1 / DoAction.as
Text File  |  2011-08-19  |  328b  |  17 lines

  1. function onEnterFrame()
  2. {
  3.    _xscale = _xscale - 2;
  4.    _alpha = _alpha - 3;
  5.    _rotation = _rotation + rotSpin;
  6.    _Y = _Y - 5;
  7.    if(_xscale < 0)
  8.    {
  9.       this.removeMovieClip();
  10.    }
  11. }
  12. _X = _X + (random(20) - 10);
  13. _Y = _Y + (random(20) - 10);
  14. _rotation = random(360);
  15. rotSpin = random(20) - 10;
  16. _alpha = 80;
  17.